#include <raylib.h>

int main(int argc, char *argv[])
{
	InitAudioDevice();
	Music music = LoadMusicStream("ChessFive_Data/Music.ogg");
	music.looping = true;
	PlayMusicStream(music);

	InitWindow(560, 600, "五子棋");
	SetTargetFPS(60);

#ifdef _WIN32
	Image icon = LoadImage("ChessFive_Data/Five.png");
	SetWindowIcon(icon);
	UnloadImage(icon);
#endif // !_WIN32

	Texture board = LoadTexture("ChessFive_Data/Board.png");

	while (!WindowShouldClose())
	{
		UpdateMusicStream(music);

		BeginDrawing();
		{
			ClearBackground(RAYWHITE);

			DrawTexture(board, 0, 0, WHITE);

#ifdef _DEBUG
			DrawFPS(2, 2);
#endif // _DEBUG
		}
		EndDrawing();
	}

	UnloadTexture(board);

	CloseWindow();

	UnloadMusicStream(music);
	CloseAudioDevice();

	return 0;
}